import QtQuick 2.6
import QtQuick.Layouts 1.2

import "../../Base/UiBase/TC" as TC
import "../../Base/UiBase"
import "../../Base/Config"

Column {
    width: parent.width
    Rectangle {
        width: parent.width
        height: 80 * Size.ratio
        color: Color.background
        Rectangle {
            anchors.centerIn: parent
            width: 680 * Size.ratio
            height: 50 * Size.ratio
            radius: 10 * Size.ratio
            color: Color.foreground
            TC.TextInput {
                anchors.fill: parent

                padding: parent.radius
                verticalAlignment: Text.AlignVCenter
                font.pixelSize: Size.font26
                SvgzImage {
                    visible: parent.length === 0 && !parent.focus
                    anchors.centerIn: parent
                    width: 100 * Size.ratio
                    height: 50 * Size.ratio
                    source: "../../../resources/tcommunity/friends/zhaoquanyou.svg"
                }
            }
        }

    }
    Rectangle {
        width: parent.width
        height: 100 * Size.ratio
        color: Color.foreground
        Row {
            height: parent.height
            spacing: 20 * Size.ratio
            Item {
                width: 100 * Size.ratio
                height: 100 * Size.ratio
                SvgzImage {
                    anchors.centerIn: parent
                    width: 80 * Size.ratio
                    height: 80 * Size.ratio
                    source: "../../../resources/tcommunity/friends/tianjiahaoyou.svg"
                }
            }
            Text {
                anchors.verticalCenter: parent.verticalCenter
                text: qsTr("添加好友")
                font.pixelSize: Size.font26
                color: Color.input
            }
        }
    }
}
